
//初始化数据
const state = {
    tableHeight:400,//表格的高度
    containerHeight:"height:500px"//布局高度
};
//action 异步的操作
const actions = {};
const mutations = {
    setTableHeight(state,data){
        state.tableHeight=data;
        //(注：如果这里的userList需要axios请求也可以把axios写在等号后面)
    },
    setContainerHeight(state,data){
        state.containerHeight=data;
    //(注：如果这里的userList需要axios请求也可以把axios写在等号后面)
    }
};
//getter 抛出去的数据
const getters = {
    tableHeight:state => state.tableHeight,
    containerHeight:state => state.containerHeight,
};
export default {
    state,
    mutations,
    actions,
    getters,
};
